package com.xiaoye.app.Test;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

//import org.json.JSONObject;
import org.junit.Test;

/**
 * Map List
 * 
 * @author xiaoye
 * @date 2018��4��27��
 * 
 * 
 *
 */
public class MapDemo {
	@Test
	public void fun() {
		List<Map<String, Object>> listDemo = new ArrayList<Map<String, Object>>();
		Map<String, Object> map1 = new HashMap<String, Object>();
		map1.put("name", "����");
		map1.put("age", 22);
		map1.put("car", new String[] { "��ɫ", "15.2" });
		listDemo.add(map1);
		//JSONObject jsonObject = new JSONObject(map1);
		//System.out.println(jsonObject.toString());
	}

}
